package com.foreknow.dao;

import com.foreknow.bean.Sys_user;

import java.sql.SQLException;
import java.util.List;

public interface Sys_userDao {
    /**
     * 添加信息
     * @param sys_user
     * @return boolean
     */
    public boolean save(Sys_user sys_user) throws SQLException;

    /**
     * 根据id查询信息
     * @param id
     * @return Sys_user
     */
    public Sys_user queryById(Integer id) throws SQLException;

    /**
     * 修改
     * @param sys_user
     * @return boolean
     */
    public boolean update(Sys_user sys_user) throws SQLException;

    /**
     * 根据id删除
     * @param id
     * @return boolean
     */
    public boolean delete(Integer id) throws SQLException;

    /**
     * 查询所有的信息
     * @return List<Object> 集合
     */
    public List<Object> getQueryAll() throws SQLException;

}